Local Test Cases:
# there can be no spaces on either side of the equal sign, before the error has been out here
yesterday= ' date-d last-day +%y-%m-%d '
echo $yesterday
curday= ' Date +%y-%m-%d '
echo $curday
echo "Now time: ' Date ' +%y%m%d%T '"
For the user to enter the validity of the date test is a very important issue, this example is simple to get the user entered the date, and converted to the appropriate format, but not perfect, why please read the text.
#!/bin/sh #
On the first, straight hit Linux:12 asked 1. What is Linux? Linux is an exotic operating system that is born on the web, growing up on the web, and ripe for networking. In the 1991, Finnish college student Linus Torvalds The idea of developing a
The R language is open source and can be run on a variety of platforms (Linux, Windows, MacOS, and so on). Many of R's packages are written by the R language, LaTeX, Java, and the most commonly used C language and Fortran. This article introduces
Linux The clock is divided into the system clock and the hardware (Real time clock, or RTC) clock. The system clock is the clock in the current Linux kernel, and the hardware clock is a battery-powered clock on the motherboard that can be set in the
Recent learning needs to be based on different date data, do the same operation, if the manual operation over and over, too cumbersome, some of the taste of the foolish. So just think about the time as a variable under the shell, and then repeat the
Summary of the basic operations of Linux, basic operations of linux
Preface
Linux was a UNIX-compatible operating system developed in 1991 and can be used for free. Its source code can be freely transmitted and can be modified, enriched, and
Http://www.ibm.com/developerworks/cn/linux/l-kdb/index.htmlThis article will first introduce some kernel code monitoring and error tracing techniques on the Linux kernel, which vary depending on the required usage environment and usage methods, and
This article is part of the Linux Shell Series Tutorial (16), more Linux shell tutorials: Linux Shell Tutorials
The output and input redirection in the shell is a feature that is often used in the use, and is very useful for you to introduce the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.